#if !defined(AFX_MMCDATADLG_H__B93A64A1_E06B_11D2_8D91_00AA00A18C62__INCLUDED_)
#define AFX_MMCDATADLG_H__B93A64A1_E06B_11D2_8D91_00AA00A18C62__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MmcDataDlg.h : header file
//
#define	ALL_LABEL		8
/////////////////////////////////////////////////////////////////////////////
// CMmcDataDlg dialog
#include "Util\MinButton.h"
#include "Util\MinLabel.h"

class CDMControlCenter;
class CMotorData;
class IAXIS1;
class CLogData;
class CSystemData;

class CMmcDataDlg : public CDialog
{
// Construction
private:
	BOOL m_bBatchFlag;
	int m_iIndex;
	int m_iOldPointSel;
	int m_iPointSel;
	int m_iCurPage;
	int m_iRestCount;
	int m_iTotalPage;

	double		m_tmpDouble[ALL_MOTOR];
	int			m_tmpInt[ALL_MOTOR];
	char		m_tmpStr[50];
	char		m_cBufGet[50];

	CMotorData* m_lnkMotorData;
	CSystemData* m_lnkSystemData;
	int m_nSelect;
	CMinLabel	m_sData[ALL_LABEL];
	CMinButton	m_bBtn[ALL_LABEL];
	IAXIS1*		m_lnkMotor[ALL_MOTOR];
	CLogData* m_lnkLogData;

public:
	CMmcDataDlg(int m_sType, IAXIS1** pMotor, CDMControlCenter* pDMControlCenter, CWnd* pParent = NULL);   // standard constructor

	void SetBatch(BOOL flag);
	void ChangeData(int cnt);
	void DataDisplay(BOOL change=TRUE);

// Dialog Data
	//{{AFX_DATA(CMmcDataDlg)
	enum { IDD = IDD_MMC_DATA_DLG };
	CMinButton	m_bNext;
	CMinButton	m_bPrev;
	CMinButton	m_bBatchInput;
	CMinButton	m_bSave;
	CMinButton	m_bExit;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMmcDataDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CMmcDataDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnData1();
	afx_msg void OnData2();
	afx_msg void OnData3();
	afx_msg void OnData4();
	afx_msg void OnData5();
	afx_msg void OnData6();
	afx_msg void OnData7();
	afx_msg void OnData8();
	afx_msg void OnPrevious();
	afx_msg void OnNext();
	afx_msg void OnBatchInput();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MMCDATADLG_H__B93A64A1_E06B_11D2_8D91_00AA00A18C62__INCLUDED_)
